{template common/contentheader}
<div class="setcontent">
	<div class="settitle">
		<h3>{lang admin_user_list:admin}</h3>
	</div>
	<div class="alert alert-info mt10">
		<span class="label label-info">{lang info:admin}</span>
		{lang admin_user_list_tip:admin}
	</div>
	<div class="setform">
		<div class="alert">
			<form action="{url admin/userlist?act=search}" method="post">
			<div class="input-append">
				Keyword:<input class="span3" type="text" name="keyword" id="keyword" value="$keyword" placeholder="Keyword">
					<select name="sysgid" id="sysgid" class="span2">
						<option value="0"  {if !$sysgid}selected{/if}>ALL</option> 
						{loop $systemGroups $g}
						<option value="$g['usergroup_id']"  {if $sysgid==$g['usergroup_id']}selected{/if}>$g['usergroup_name']</option> 
						{/loop}
					</select>
					<select name="mbmgid" id="mbmgid" class="span2">
						<option value="0"  {if !$mbmgid}selected{/if}>ALL</option> 
						{loop $memberGroups $g}
						<option value="$g['usergroup_id']"  {if $mbmgid==$g['usergroup_id']}selected{/if}>$g['usergroup_name']</option> 
						{/loop}
					</select>
				<button type="submit" class="btn btn-primary submit-btn">{lang search}</button>
			</div>
			</form>
		</div>
	</div>
	<div class="setform">
		<table class="table table-striped">
        <thead>
          <tr>
            <th width="30">ID</th>
            <th width="50">Email</th>
            <th width="40">{lang th_nickname:admin}</th>
            <th width="40">{lang th_user_title:admin}</th>
            <th width="40">{lang group_system:admin}</th>
            <th width="40">{lang group_member:admin}</th>
            <th width="40">{lang group_special:admin}</th>
            <th width="200">{lang th_user_desc:admin}</th>
            <th width="60">{lang th_createtime:admin}</th>
            <th width="60">{lang operation:admin}</th>
          </tr> 
        </thead>
        <tbody> 
        {loop $users $key $user}
			<tr>  
			<td>$user['user_id']</td>
			<td>$user['email']</td>
			<td>$user['nickname']</td>
			<td>$user['user_title']</td>
			<td>$user['system']</td>
			<td>$user['member']</td>
			<td>{if $user['special']}$user['special']{else}{lang no_select:admin}{/if}</td>
			<td>{if $user['bio']}$user['bio']{else}{lang no_description:admin}{/if}</td>
			<td>{date $user['create_time']}</td>  
			<td>{if $user['user_id']!=1}<a href="{url admin/userlist?act=delete&uid=$user['user_id']}">{lang delete:admin}</a>{/if} 
			<a href="{url admin/userlist?act=edit&uid=$user['user_id']}">{lang edit:admin}</a></td>
          	</tr>
		{/loop}
          
        </tbody>
		</table>
		<div class="text_c">$pages</div>
	</div>
</div>
{template common/contentfooter}